package chap15;

public class BaseBread {
	private String bread;

	public String getBread() {
		return bread;
	}

	public void setBread(String bread) {
		this.bread = bread;
	}
	
	<T extends Hasf> void eat(T s){
		s.add();
		s.minus();
	}
	
	public static void main(String[] args) {
		Hasf h=new Hasfim();
		BaseBread b=new BaseBread();
		b.eat(h);
	}
	

}
